﻿using Framework.Ddd.Application.Contracts.Dtos;
using my.abp.Domain.Shared.Entities;
using my.abp.Domain.Shared.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace my.abp.Application.Contracts.Dtos.Role
{
	public class RoleInput : BaseIdInput
	{
		/// <summary>
		/// 状态
		/// </summary>
		public virtual StatusEnum Status { get; set; }
	}

	public class PageRoleInput : PagedAllResultRequestDto
	{
		/// <summary>
		/// 名称
		/// </summary>
		public virtual string? Name { get; set; }

		/// <summary>
		/// 编码
		/// </summary>
		public virtual string? Code { get; set; }
	}

	public class AddRoleInput : SysRole
	{
		/// <summary>
		/// 名称
		/// </summary>
		[Required(ErrorMessage = "角色名称不能为空")]
		public override string Name { get; set; }

		/// <summary>
		/// 菜单Id集合
		/// </summary>
		public List<long> MenuIdList { get; set; }
	}

	public class UpdateRoleInput : AddRoleInput
	{
	}

	public class DeleteRoleInput : BaseIdInput
	{
	}
}
